
#ifndef RTPIPE_H
#define RTPIPE_H

#define RT_DEFAULT_MAX_SOCKET_BUFSIZ 65535

class CRtPipe  
{
public:
	CRtPipe();
	~CRtPipe();

	RtResult Open(DWORD aSize = RT_DEFAULT_MAX_SOCKET_BUFSIZ);
	RtResult Close();

	RT_HANDLE GetReadHandle() const;
	RT_HANDLE GetWriteHandle() const;

private:
	RT_HANDLE m_Handles[2];
};

#endif // !RTPIPE_H
